/*
 * Copyright (c) ycq_work@163.com
 */

package com.mxg.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * @Author: ycq_work@163.com
 * @DATE: 2023/5/8 22:43
 * 文章表对应的实体类
 */
@TableName("article")
@Data
public class Article {
    @TableId(value = "article_id", type = IdType.AUTO)
    private Integer articleId;

    @TableField(value = "article_title")
    private String articleTitle;

    @TableField(value = "article_content_html")
    private String articleContentHtml;

    @TableField(value = "article_content_md")
    private String articleContentMd;

    @TableField(value = "article_author_id")
    private Integer articleAuthorId;

    @TableField(value = "article_created_at")
    private String articleCreatedAt;

    @TableField(value = "article_updated_at")
    private String articleUpdatedAt;

    @TableField(value = "article_views")
    private Integer articleViews;

    @TableField(value = "article_status")
    private Integer articleStatus;

    @TableField(value = "article_favorite")
    private Integer articleFavorite;

    @TableField(value = "article_comments")
    private Integer articleComments;

    @TableField(value = "article_tags")
    private String articleTags;

    @TableField(value = "article_images")
    private String articleImages;

    @TableField(value = "article_category_id")
    private Integer articleCategoryId;

    @TableField(value = "article_is_original")
    private Integer articleIsOriginal;

    @TableField(value = "article_sources_url")
    private String articleSourcesUrl;

    @TableField(value = "article_excerpt")
    private String articleExcerpt;
}
